<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8">
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Cache" content="no-cache">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <title>个人中心</title>
    <script src="javascript/jquery.min.js"></script>
    <script src="javascript/function.js"></script>
    <link rel="stylesheet" href="stylesheet/style_v1.1.css">
    <link rel="stylesheet" href="stylesheet/style.css">
</head>
<body>
<div class="con padding-bottom50">
    <div class="user-info">
        <div class="user-img">
            <img src="image/touxiang.jpg" alt="" id="userimg">
        </div>
        <div class="user-name">
            <h3 id="username">保密</h3>
<!--             <span>积分：<b id="point">0</b> | 余额：<b id="balance">0</b>元</span> -->
        </div>
    </div>
    <div class="function-user">
        <table>
            <tr>
                <td>
                    <a href="forwardPage_cliffordListShow.action">
                        <b class="icon-newspaper-alt color2 "></b>
                        <span>灵犀记录</span>
                    </a>
                </td>
                <td>
                    <a href="forwardPage_activityShowList.action">
                        <b class="icon-lightbulb color1"></b>
                        <span>我的众筹</span>
                    </a>
                </td>
<!--                 <td> -->
<!--                     <a href="forwardPage_cliffordRecordShow.action"> -->
<!--                         <b class="icon-newspaper-alt color2 "></b> -->
<!--                         <span>聚福记录</span> -->
<!--                     </a> -->
<!--                 </td> -->
                  <td>
                    <a href="forwardPage_addressList.action">
                        <b class="icon-pin-alt color3"></b>
                        <span>地址管理</span>
                    </a>
                </td>
            </tr>
            <tr>
          
                <td>
                    <a href="forwardPage_personal.action">
                        <b class="icon-user color3"></b>
                        <span>个人资料</span>
                    </a>
                </td>
                <td>
                    <!--<a href="#">-->
                        <!--<b class="icon-comments color2"></b>-->
                        <!--<span>我的消息</span>-->
                    <!--</a>-->
                </td>
                 <td>
                    <!--<a href="#">-->
                        <!--<b class="icon-comments color2"></b>-->
                        <!--<span>我的消息</span>-->
                    <!--</a>-->
                </td>
            </tr>
        </table>
    </div>

</div>
  <%@ include file="footer.jsp"%>
    <script>
    $(function () {
        auto_height();
        queryUserDetail();
    });
    function auto_height() {
        var table_width = $('.function-user').find('td').width();
        $('.function-user').find('td').height(table_width);
    }
    function queryUserDetail() {
//		var params = "parms.goodsId=" + goodsId;
	$.ajax({
				type : 'post',
				url : 'cliffordAction!queryUserInfo.action',
				async : false,
//					data : params, // 传给action的参数
				success : function(data) {
					if (data.result == 1) {
							if (data.resultData.size == '0') {
								alert("未获取到用户信息");
    						}else if (data.resultData.size == '1') {
    							var list = data.resultData.datalist;
    							$("#userimg").attr('src',list[0].userWebcahtHeadurl);
    							$("#username").text(list[0].userName);
    							$("#point").text(list[0].userPoInt);
    							$("#balance").text(list[0].userBalance);
    						} else {
    							alert("用户信息不正确，请联系客服人员");
    						}
					} else {
						alert(data.msg);
					}
				}
			});
}
    </script>
</body>
</html>